<?php
	session_start();
	if(!isset($_SESSION['account']))
		header("Location:index.php");


?>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="css/header.css"></link>
  <link rel="stylesheet" type="text/css" href="css/style.css"></link>
  <script type="text/javascript" src="js/functions.js"></script>
          <link rel="stylesheet" type="text/css" href="css/ui-lightness/jquery-ui-1.10.0.custom.min.css"></link>

<script type="text/javascript" src="js/jquery-1.9.0.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.10.0.custom.min.js"></script>

</head>
<body>
      <?php include("header.php");
      if(isset($_GET['esito'])){
          if($_GET['esito']=="ok"){
              echo "<div id=\"dialog\" title=\"Operazione effetuata\"><p> Inserimento effettuato</p></div>";
          }
          else if($_GET['esito']=="filetroppogrande")
              echo "<div id=\"dialog\" title=\"Operazione effetuata\"><p> File troppo grande per essere salvato sul server</p></div>";
          else
              echo "<div id=\"dialog\" title=\"Operazione effetuata\"><p>  Errore caricamento file </p></div>";

      }
      ?>
  
      
  
  <script type="text/javascript">
  	activePage();
        $("#dialog").dialog();
  
  </script>
  </body>



</html>